.supui-input {
    width: 100%;
    display: table;
    position: relative;

    .supui-input-before {
        display: table-cell;
    }

    .supui-input-after {
        display: table-cell;
    }

    .supui-input-addon {
        position: relative;
        padding: 0 11px;
        font-weight: 400;
        font-size: 14px;
        text-align: center;
        background-color: $gray-200;
        border: 1px solid $gray-300;
        border-radius: 2px;
        z-index: -1;

        &:first-child {
            border-right: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        &:last-child {
            border-left: 0;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }

    .supui-input-inner:not(:first-child):not(:last-child) {
        border-radius: 0;
    }

    .supui-input-inner:first-child:not(:last-child) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .supui-input-inner:last-child:not(:first-child) {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .supui-input-inner {
        display: table-cell;
        position: relative;
        width: 100%;
        padding: $input-padding-y $input-padding-x;
        font-family: $input-font-family;
        font-size: $input-font-size;
        font-weight: $input-font-weight;
        line-height: $input-line-height;
        color: $input-color;
        background-color: $input-bg;
        background-clip: padding-box;
        border: $input-border-width solid $input-border-color;
        border-radius: $input-border-radius;
        box-shadow: $input-box-shadow;
        transition: $input-transition;

        &:focus {
            color: $input-focus-color;
            background-color: $input-focus-bg;
            border-color: $input-focus-border-color;
            outline: 0;
            box-shadow: $input-focus-box-shadow;
            z-index: 0;
        }

        &::placeholder {
            color: $input-placeholder-color;
            opacity: 1;
        }

        &:disabled,
        &[readonly] {
            background-color: $input-disabled-bg;
            border-color: $input-disabled-border-color;
            opacity: 1;
        }
    }

    .supui-icon-wrapper {
        position: absolute;
        z-index: 1;
        height: 100%;
        width: 35px;
        color: $input-color;
        right: 0;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .supui-icon-wrapper+.supui-input-inner {
        padding-right: 35px;
    }

    &.supui-input-size-sm .supui-input-inner {
        padding: $input-padding-y-sm $input-padding-x-sm;
        font-size: $input-font-size-sm;
        border-radius: $input-border-radius-sm;
    }

    &.supui-input-size-lg .supui-input-inner {
        padding: $input-padding-y-lg $input-padding-x-lg;
        font-size: $input-font-size-lg;
        border-radius: $input-border-radius-lg;
    }
}